{% load static %}
<!DOCTYPE html>
<html lang="zh">
<head></head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>投票系统</title>
    <link rel="stylesheet" href="{% static 'polls/style.css' %}">
</head>
<body>
    <div class="container">
        <h1>投票系统</h1>
        
        {% if latest_question_list %}
            <ul class="question-list">
                {% for question in latest_question_list %}
                    <li></li>
                        <a href="{% url 'polls:detail' question.id %}">
                            {{ question.question_text }}
                        </a>
                    </li>
                {% endfor %}
            </ul>
        {% else %}
            <p class="no-polls">当前没有可用的投票。</p>
        {% endif %}

        <div class="nav-links">
            <a href="/admin/" class="admin-link">后台管理</a>
        </div>
    </div>
</body>
</html>